﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Server.SystemSets.MenuServices.Dto
{
    public class MenuInput
    {
        public int Id { get; set; }
        /// <summary>
        /// 父级权限
        /// </summary>
        public int PID { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        public string? Url { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [StringLength(100)]
        public string? IconUrl { get; set; }

        /// <summary>
        /// 排序ID
        /// </summary>
        public int SortId { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsDelete { get; set; } = false;
        /// <summary>
        /// 子权限
        /// </summary>
        public List<MenuInput>? Children { get; set; }
    }
}
